package com.mall.service.authority.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.mall.commons.common.CommonPage;
import com.mall.model.domain.UmsResource;

/**
 * @Author Pan Rundong
 * @Date 2023-03-11 21:56
 * @Desc 后台资源Service
 */
public interface ResourceService extends IService<UmsResource> {
    /**
     * 添加后台资源
     *
     * @param resource
     * @return java.lang.Boolean
     * @Author Pan Rundong
     */
    Boolean checkAndSave(UmsResource resource);

    /**
     * 修改后台资源
     *
     * @param id
     * @param umsResource
     * @return java.lang.Boolean
     * @Author Pan Rundong
     */
    Boolean checkAndUpdate(Long id, UmsResource umsResource);

    /**
     * 分页查询后台资源
     *
     * @param pageNum
     * @param pageSize
     * @param categoryId
     * @param nameKeyword
     * @param urlKeyword
     * @return com.mall.commons.common.CommonPage<com.mall.model.domain.UmsResource>
     * @Author Pan Rundong
     */
    CommonPage<UmsResource> findAll(Integer pageNum, Integer pageSize, Long categoryId, String nameKeyword, String urlKeyword);
}
